<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Migration_Table_Commodity_AddColumn_ContactType_ContactInfo extends CI_Migration
{
    public function up()
    {
        $fields = array(
            'contact_type' => array('type' => 'VARCHAR', 'constraint' => '50', 'null' => TRUE,),
            'contact_info' => array('type' => 'VARCHAR', 'constraint' => '50', 'null' => TRUE,),
        );
        $this->dbforge->add_column('commodity', $fields);
    }

    public function down()
    {
        $this->dbforge->drop_column('commodity', 'contact_type');
        $this->dbforge->drop_column('commodity', 'contact_info');
    }
} 